﻿<%@ Page Language="C#" Theme="SkinFile" MasterPageFile="~/MasterAdministradores.master" AutoEventWireup="true" CodeFile="ListarMesas.aspx.cs" Inherits="pruebas_ListarMesas" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:BoundField DataField="IdMesa" HeaderText="IdMesa"
                SortExpression="IdMesa" />
            <asp:BoundField DataField="IdJuego" HeaderText="IdJuego" SortExpression="IdJuego" />
            <asp:HyperLinkField DataNavigateUrlFields="IdMesa" DataNavigateUrlFormatString="~/pruebas/BorrMesa.aspx?IdMesa={0}"
                Text="Baja" />
        </Columns>
        <RowStyle BackColor="#EFF3FB" />
        <EditRowStyle BackColor="#2461BF" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:casinoConnectionString %>"
        SelectCommand="SELECT [IdMesa], [IdJuego] FROM [Mesa] WHERE ([FechaBaja] IS NULL)"></asp:SqlDataSource>

</asp:Content>

